package com.tanhua.model.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "sound")
public class Sound implements Serializable {
      //定义实现类
    private static final long serialVersionUID = -3136732836884933873L;


    private ObjectId id;            //主键id
    private Long sid;               //自增长id
    private Long userId;            //发布语音的用户id
    private String souUrl;          //语音文件
    private Long created;           //创建时间

}